import request from '@/utils/request'

// 查询商务合作列表
export function listCooperateBack(query) {
  return request({
    url: '/informfrontend/cooperateBack/list',
    method: 'get',
    params: query
  })
}

// 查询商务合作详细
export function getCooperateBack(id) {
  return request({
    url: '/informfrontend/cooperateBack/' + id,
    method: 'get'
  })
}

// 新增商务合作
export function addCooperateBack(data) {
  return request({
    url: '/informfrontend/cooperateBack',
    method: 'post',
    data: data
  })
}

// 修改商务合作
export function updateCooperateBack(data) {
  return request({
    url: '/informfrontend/cooperateBack',
    method: 'put',
    data: data
  })
}

// 删除商务合作
export function delCooperateBack(id) {
  return request({
    url: '/informfrontend/cooperateBack/' + id,
    method: 'delete'
  })
}
